-- GENERATED SPELL FOR [Timber Worg Alpha] --


function spell0_18477(pUnit, Event) --@Furious Howl,n/a--
pUnit:FullCastSpellOnTarget(3149,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18477', 15000, 1)
end

function spell1_18477(pUnit, Event) --@Snarl,n/a--
pUnit:FullCastSpellOnTarget(32919,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18477', 686, 1)
end

function Sorts_18477(pUnit, Event)
local choix_sorts_18477 = math.random(0, 1)
if choix_sorts_18477 == 0 then
pUnit:RegisterEvent('spell0_18477', 1, 1)
end
if choix_sorts_18477 == 1 then
pUnit:RegisterEvent('spell1_18477', 1, 1)
end
end

function mob18477_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18477', math.random(1500, 3000), 1)
end

function mob18477_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18477_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18477_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18477, 1, 'mob18477_Action')
RegisterUnitEvent(18477, 2, 'mob18477_Leave')
RegisterUnitEvent(18477, 3, 'mob18477_Kill')
RegisterUnitEvent(18477, 4, 'mob18477_Die')
